package entrys

type Response1W struct {
	Code int    `json:"code"`
	Show int    `json:"show"`
	Msg  string `json:"msg"`
	Data struct {
		NowTime  int64        `json:"nowTime"`
		LoadTime int64        `json:"load_time"`
		Lists    []ListItem1W `json:"lists"`
		Count    int          `json:"count"`
	} `json:"data"`
}

type ListItem1W struct {
	ID       int      `json:"id"`
	Type     string   `json:"type"`
	Opencode string   `json:"opencode"`
	Total    int      `json:"total"`
	Expect   string   `json:"expect"`
	OpenTime int64    `json:"open_time"`
	Code     []string `json:"code"`
	CodeYuce []int    `json:"code_yuce"`
}

type LotteryData struct {
	Code       int    `json:"code"`
	ServerTime string `json:"serverTime"`
	Data       []struct {
		Id         string `json:"id"`
		LotCode    int    `json:"lotCode"`
		Period     string `json:"period"`
		NextPeriod string `json:"nextPeriod"`
		Content    string `json:"content"`
		OpenTime   string `json:"openTime"`
		NextTime   string `json:"nextTime"`
		CreateTime string `json:"createTime"`
	} `json:"data"`
	Show int `json:"show"`
}

// 定义结果结构体
type PredictionResult struct {
	CurrentOpencode  string
	PredictedSum     int
	CurrentOpenTime  string
	PreviousOpencode string
	PreviousOpenTime string
	PredictedSize    string
	SizeCorrect      bool
	PredictedOddEven string
	OddEvenCorrect   bool
}
